home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Grafik & Text & Film / Quark XTensions / Freeware Xtensions / Scripts folder / Scripts / Read Me for Scripts!!!! next >
Text File  |  1994-04-15  |  6KB  |  47 lines

  1. Hello,
  2. Thanks for looking at and trying these scripts. I hope you find them useful and informative. 
  3. To use these scripts yourself you’ll need a couple things:
  4. • System 7
  5. • The AppleScript Extension 1.1, the Event Manager Extension, OSA Menu, and the Scripting Additions Folder. They are provided on this disk for you to use. Drag the *contents* of the "Place in Extensions Folder" folder into the Extensions folder in your System folder (this includes the scripting additons folder. Put the folder itself in the extension folder as well. Do not open the Scripting Additons folder and empty the contents! Place it in the Extensions folder in the System folder, as is.) They are provided on this disk for you to use. If you want to open and edit the scripts though, you'll need the AppleScript Script Editor which you must purchase as part of the AppleScript Package. This is available from most software vendors including MacConnection and MacWarehouse. The files included will run the scripts, you just won't be able to edit them unless you have the Script Editor. Copies of each script saved in a text format are included on this disk. These may be opened in a word proccessor or any program that will import a standard text file.
  6.  
  7. • For the box guide placing script you'll need QuarkXPress version 3.3. This is because a bug in 3.2 caused guides to be place exactly 1-point off. If you want to adjust the script you can add a point in the formula so that it will work with 3.2, otherwise it'll be slightly off.
  8. The other scripts "should" work fine in 3.2
  9.  
  10. • To be on the safe side, try these scripts on non-essential documents until you've established that your system is setup properly and that the scripts are compatible with your setup. Although I've gone to great lengths to try to make these scripts as error free as possible -you use the scripts as is, no guarantees are made. (necessary disclaimer here) Should you have any problems, please contact me at the on-line address below with your comments, suggestions, or problems.
  11.  
  12. To use these scripts, FIRST READ the OSA read me, then load them in the OSA menu as per the instructions, and they’ll be available at any time in QuarkXPress. Just select them and watch what happens! Or you can run them from the Applescript Script editor (if you own AppleScript, and I highly recommend the purchase). If you choose to do that note that you'll see all the actions of the script. When a script is run from a menu, QuarkXPress delays to screen updates until the script is done-a big difference.
  13.  
  14. The scripts included are:
  15. Guides • Guides to box 1.7 -This places guides around any selected text or picture box. Just select an single box and run the script by selecting it from the OSA menu you've installed.
  16. Guides • Toggle InFront/Behind- will set the guides to show either in fornt of objects or behind them
  17. Guides • Toggle Lock/Unlock - will set the guides to be locked or unlocked
  18. Guides • Toggle On/Off - will set the guides to show or hide
  19. Text • Change Style Sheets - allows the user to change every occurance of a style sheet in a document to another style sheet. To use, select the script form the OSA menu and you will be presented with a list of the style sheets used in your document. They will be numbered. Note the number of the style sheet that you want to change as well as the number of the style sheet to change to. In the second dialog type the *number* of the style sheet to change, then type a *comma*, then the *number* of the style sheet to change to. Press OK and in seconds, it's done and will beep twice. This is a useful script and if you open it you will notice it is rather involved with repeating statements and loops. Those are necessary to check for incorrect input from the user.
  20.  
  21.  
  22. Also note: 
  23. If Applescript is something you’re interested in learning more about, then buy Danny Goodman’s excellent book, “The Complete AppleScript Handbook” published by Random House (0-679-79148-5) for $35. It’s the best thing I’ve read on the subject of AppleScript.
  24. There’s not much material on the nuances of writing scripts for XPress, so to aid you in your search for XPress scripting nirvana, I’m releasing my new disk, 
  25. ****“Sal’s Applescript Snippets for QuarkXPress”****
  26.  which will be available soon through XChange (800)788-7557. It contains over 50 useful, powerful scripts for working in QuarkXPress. They range from the simple scripts shown here to:
  27. • creating grids of guides, picture or text boxes
  28. • reporting font usage of a QXP document by dragging it over an icon on the desktop
  29. • auto importing images from a folder into your layout
  30. • finding font usage in a document by dragging the file icon over a script droplet
  31. • slugging your layout and later auto-importing images and text files
  32. • placing guides in exact locations
  33. • converting numbers to text
  34. • hyphenating or capitalizing text
  35. • numbering paragraphs
  36. • setting text box insets
  37. • placing crop marks around a box
  38. • shrinkwrapping picture boxes to the image they contain
  39. • linking selected boxes and importing a text file into the new chain
  40. • and many more production tools and examples.
  41. Each script can be opened, examined for syntax and procedures, and copied (unless you think of a better way to write the example). They’re excellent learning material for beginning and intermediate XPress Scripters as well as being useful tools for everyone, scripters or not! And they’ll work with the soon to be released ScriptIt XTension. The examples included here are from that disk.
  42. Hope this has been helpful! If you have questions, contact me at:
  43. AOL: NYHTHAWK
  44. Applelink: Designxpress
  45. CIS: 73250,744
  46. Sal
  47.